
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<a href="student">查询操作</a>

<hr>

<form action="student"  method="post" id="postForm">
    a:<input type="text" name="a" id="a">
    b:<input type="text" name="b" id="b">
    c:<input type="text" name="c" id="c">
      <button type="button" id="postBtn">post提交</button>
</form>
<hr>


<form  action="student" method="post">

    <input type="hidden" name="_method" value="put">
    <button type="submit">put提交</button>
</form>
<hr>


<form action="student" method="post">
    <input type="hidden" name="_method" value="delete">
    <button type="submit">delete提交</button>
</form>
<hr>


</body>
</html>
<script src="js/jquery-3.1.0.min.js"></script>
<script>

    $(function(){

        $("#postBtn").click(function(){

           let url="student/";
           url+=$("#a").val();
            url+="/"+$("#b").val();
            url+="/"+$("#c").val();
              //设置表单的action属性
            $("#postForm").attr("action",url);
           //提交方式
            $("#postForm").submit();

        });

    });

</script>
